import request from '@/utils/request'

// 查询产品叶片失效信息列表
export function listProductFailureInfo(query) {
  return request({
    url: '/product/productFailureInfo/list',
    method: 'get',
    params: query
  })
}

// 查询产品叶片失效信息详细
export function getProductFailureInfo(id) {
  return request({
    url: '/product/productFailureInfo/' + id,
    method: 'get'
  })
}

// 新增产品叶片失效信息
export function addProductFailureInfo(data) {
  return request({
    url: '/product/productFailureInfo',
    method: 'post',
    data: data
  })
}

// 修改产品叶片失效信息
export function updateProductFailureInfo(data) {
  return request({
    url: '/product/productFailureInfo',
    method: 'put',
    data: data
  })
}

// 删除产品叶片失效信息
export function delProductFailureInfo(id) {
  return request({
    url: '/product/productFailureInfo/' + id,
    method: 'delete'
  })
}

// 查询未生成失效信息的产品数据

export function failureInfo(query) {
  return request({
    url: '/product/productFailureInfo/failureInfo',
    method: 'get',
    params: query
  })
}
